package com.kaifamiao.demo.d0719;

public class Demo03 {

    public static void main(String[] args) {
        int[] nums = {3, 5, 1, 6, 2, 9};

        // 遍历数组
        for (int index = 0; index < nums.length; index ++){
            System.out.println(nums[index]);
        }

        // 增强 for 循环， for-each
//        for (int num : nums){
//            System.out.println(num);
//        }

    }
}
